<?php
function __autoload($class){
	require_once $class .'.php';
}

if(isset($_POST['login'])){
	$dbconnect = new DBconnect();
	if($dbconnect->checkLogin(trim($_POST['managername']), trim($_POST['password']))){
			
	}
	else {
		
	}	
}
?>
<form action='<?php echo $_SERVER['PHP_SELF']; ?>' method='post'>
	<table>
		<tr>
			<td>Manager Name</td>
			<td><input type='text' name='managername' id='managername' /></td>
			<td>Password</td>
			<td><input type='password' name='password' id='password' /></td>
			<td></td>
			<td><input type='submit' name='login' value='Login' /></td>
		</tr>
	</table>
</form>
<p><a href="?page=Register" class="continue">Not yet registered? Sign in here!</a></p>
